
#include "pt_network.h"

static uint8_t  pt_config_network_succeed_flag = 0;

uint8_t pt_network_set(uint8_t val)
{
    pt_config_network_succeed_flag = val;
    debug_d("pt_network_set:%d------\n",val);
    return pt_config_network_succeed_flag;
}


uint8_t pt_network_get(void)
{
    return pt_config_network_succeed_flag;
}

static uint8_t pt_accredit_res = 0;//0：未授权，1：已授权

uint8_t pt_accredit_set(uint8_t val)
{
    pt_accredit_res = val;
    return pt_accredit_res;
}

uint8_t pt_accredit_get(void)
{
    return pt_accredit_res;
}

static uint8_t pt_accredit_token = 0;

uint8_t pt_accredit_token_set(uint8_t val)
{
    pt_accredit_token = val;
    return pt_accredit_token;
}

uint8_t pt_accredit_token_get(void)
{
    return pt_accredit_token;
}


static uint8_t pt_reconnect_flag = 0;//0

uint8_t pt_recnnt_flag_set(uint8_t val)
{
    pt_reconnect_flag = val;
    return pt_reconnect_flag;
}

uint8_t pt_recnnt_flag_get(void)
{
    return pt_reconnect_flag;
}

static uint8_t pt_unbind_flag = 0;//0

uint8_t pt_unbind_flag_set(uint8_t val)
{
    pt_unbind_flag = val;
    return pt_unbind_flag;
}

uint8_t pt_unbind_flag_get(void)
{
    return pt_unbind_flag;
}

